package com.ruiysoft.controller.sys.api;

import com.ruiysoft.controller.sys.dto.CalculationDto;
import com.ruiysoft.controller.sys.res.ShopResponse;
import com.ruiysoft.pub.core.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.validation.Valid;

/**
 * Created by 化增光 on 2018/12/1.
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2018-11-02T18:10:17.406+08:00")

@Api(value = "innerMicroprogram", description = "the innerMicroprogram API")
public interface InnerMicroprogramApi {

    @ApiOperation(value = "计算人员分销提成", nickname = "calculation", notes = "", tags={ "小程序端店铺接口", })
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "successful operation") })
    @RequestMapping(value = "/inner/shopDistribution/calculation",
            produces = { "application/json" },
            method = RequestMethod.POST)
    Result calculation(@ApiParam(value = "", required = true)  @Valid @RequestBody CalculationDto calculationDto);

    @ApiOperation(value = "获取店铺信息", nickname = "getShopkeeper", notes = "", response = ShopResponse.class, tags={ "获取店铺信息", })
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "successful operation", response = ShopResponse.class) })
    @RequestMapping(value = "/inner/shopkeeper",
            produces = { "application/json" },
            method = RequestMethod.GET)
    Result getShopkeeper(Long shopId);


    @ApiOperation(value = "根据店铺主键获取用户和店铺信息", nickname = "getShopInfos", notes = "", response = ShopResponse.class, tags={ "获取店铺信息", })
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "successful operation", response = ShopResponse.class) })
    @RequestMapping(value = "/inner/shopInfo",
            produces = { "application/json" },
            method = RequestMethod.GET)
    Result getShopInfos(Long... shopId);
}
